/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.controllers;

import com.bs.beans.Lancamento;
import com.bs.forms.LancamentoForm;

/**
 *
 * @author Bone
 */
public class ContaAPagarGridController<E> extends LancamentoGridController<Lancamento> {

    @Override
    public void novo() {
        Lancamento l = new Lancamento();
        LancamentoForm f = new LancamentoForm(l, false);
        f.setVisible(true);
        if(l.getId()!= null)adicionarALista(l);
        f = null;
        l = null;
    }

    @Override
    public void alterar() {
        LancamentoForm f = new LancamentoForm(getBeanSelecionado(), false);
        f.setVisible(true);
        f = null;
    }
}
